package leastMinutes;

public class Solution {
    public int leastMinutes(int n) {
        int res = 0;
        while(true){
            if(1<<res>n){
                return res;
            }
            res++;
        }
    }

    // 2^n
}
